import json

# 原始JSON数据
json_data = '''
[
  {
    "value": "Category1",
    "label": "Category1",
    "children": [
      {
        "value": "Child1",
        "label": "Child1"
      },
      {
        "value": "Child2",
        "label": "Child2"
      }
    ]
  },
  {
    "value": "Category2",
    "label": "Category2",
    "children": [
      {
        "value": "Child3",
        "label": "Child3"
      },
      {
        "value": "Child4",
        "label": "Child4"
      }
    ]
  }
]
'''

# 将JSON字符串加载为Python对象
data = json.loads(json_data)

# 递归函数，用于去除键的引号
def remove_quotes_from_keys(obj):
    if isinstance(obj, dict):
        new_dict = {}
        for k, v in obj.items():
            key_without_quotes = k.replace('"', '')
            new_dict[key_without_quotes] = remove_quotes_from_keys(v)
        return new_dict
    elif isinstance(obj, list):
        return [remove_quotes_from_keys(item) for item in obj]
    else:
        return obj

# 应用递归函数去除键的引号
data_without_keys_quotes = remove_quotes_from_keys(data)

# 将处理后的数据转换回JSON字符串
json_without_keys_quotes = json.dumps(data_without_keys_quotes, indent=2)

print(json_without_keys_quotes)